using Cmpp.Client.Cmpp3Message.Utility;

namespace Cmpp.Client.Cmpp3Message {
    public class Cmpp3DeliverResponse : Cmpp3Request {
        private ulong m_messageId;
        private uint m_result;

        public Cmpp3DeliverResponse() : base(Cmpp3Command.DeliverResponse) {
        }

        public ulong MessageId {
            get { return m_messageId; }
            set { m_messageId = value; }
        }

        public uint Result {
            get { return m_result; }
            set { m_result = value; }
        }

        protected override void WriteBody(CmppMessageWriter writer) {
            writer.Write(m_messageId);
            writer.Write(m_result);
        }
    }
}